﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AdminHome.aspx.cs" Inherits="WebTraderLite.AdminContent.AdminHome" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="loginName" DataSourceID="SqlDataSource1" 
        onselectedindexchanged="GridView1_SelectedIndexChanged">
        <Columns>
            <asp:BoundField DataField="loginName" HeaderText="loginName" ReadOnly="True" 
                SortExpression="loginName" />
            <asp:BoundField DataField="firstName" HeaderText="firstName" 
                SortExpression="firstName" />
            <asp:BoundField DataField="lastName" HeaderText="lastName" 
                SortExpression="lastName" />
            <asp:BoundField DataField="accType" HeaderText="accType" 
                SortExpression="accType" />
            <asp:BoundField DataField="accStatus" HeaderText="accStatus" 
                SortExpression="accStatus" />
            <asp:BoundField DataField="regDate" HeaderText="regDate" 
                SortExpression="regDate" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:webtraderliteConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:webtraderliteConnectionString.ProviderName %>" 
        SelectCommand="SELECT loginName,firstName,lastName,accType,accStatus,regDate FROM webtraderlite.user;">
    </asp:SqlDataSource>
   </asp:Content>
